<script setup>
import {computed, inject, provide, ref, watch} from "vue";
import delivery from '@/api/warehouse/delivery'
const crudRef = inject('crudRef')
const visible = ref(false)
const list = ref([])

const open = async (data) => {
  console.log(data)
  list.value = data
  visible.value = true
}
defineExpose({ open})
</script>
<template>
  <a-drawer v-model:visible="visible" width="80%">
    <template #title>
      <div class="grid grid-cols-[minmax(0,1fr),auto] items-center">
        <div>合并转运单</div>
      </div>
    </template>
      <a-space direction="vertical" class="w-full">
        <a-grid :cols="{ xs: 1, sm: 2, md: 3, lg: 4, xxl: 6 }" :colGap="colGap" :rowGap="rowGap">
              <p v-for="item in list">
                <input type="radio" name="id" value="{{item}}">{{ item }}
              </p>
        </a-grid>
      </a-space>
  </a-drawer>
</template>